using System;

namespace Tort.Attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public sealed class DBObjectAttribute : Attribute
    {
        public DBObjectAttribute() { }

        // TODO: Expand on this to allow tort-ql for none table to concreate class mappings....
        public DBObjectAttribute(string tableName) 
        {
            data = tableName;
        }

        string data;

        /// <summary>
        /// Allows the implementation of whatever sql the developer requires
        /// </summary>
        /// <param name="sql">The sql command to execute</param>
        /// <param name="sqlQueryType">The type of database interaction. Update, Select, Insert, Delete</param>
        //TODO: Implement DBObjectAttribute for any sql command
        //public DBObjectAttribute(IDbCommand sqlCommand, SQLQueryType sqlQueryType) 
        //{ 
            
        //}

        public string TableName { get { return data; } }
    }
}
